<!-- Content -->
<div id="content">

    <!-- Content wrapper -->
    <div class="wrapper">

        <!-- Breadcrumbs line -->
        <div class="crumbs">
            <ul id="breadcrumbs" class="breadcrumb"> 
                <li><a href="#">Panel</a></li>
                <li class="active"><a href="<?= base_url('herramientas') ?>" title="">Herramientas</a></li>
            </ul>
        </div>
        <!-- /breadcrumbs line -->

        <!-- Page header -->
        <div class="page-header">
            <div class="page-title">
                <h5>Modificar Herramienta</h5>
                <span>CIEMPIESS-UNAM</span>
            </div>
        </div>
        <!-- /page header -->

        <?= @$mensaje; ?>
        <?= form_open_multipart('herramientas/actualizar_herramienta') ?>
        <!-- Grid widgets -->
        <div class="row-fluid">
            <div class="span6">
                <div class="widget">
                    <div class="navbar"><div class="navbar-inner"><h6>Español</h6></div></div>
                    <div class="well body">

                        <div class="control-group">
                            <label class="control-label">Título: <span class="text-error">*</span></label>
                            <div class="controls">
                                <input type="text" class="validate[required] span12" maxlength="80" name="titulo_es" value="<?= @$titulo_es; ?>" required/>
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">Descripción corta:</label>
                            <div class="controls">
                                <textarea rows="6" cols="5"  maxlength="1000" name="intro_es" class="span12" id="req" required ><?= @$intro_es; ?></textarea>
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">Descripción:</label>
                            <div class="controls">
                                <textarea rows="25" cols="5"  maxlength="1600000" name="desc_es" class="span12" id="req" required ><?= @$desc_es; ?></textarea>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <div class="span6">
                <div class="widget">
                    <div class="navbar"><div class="navbar-inner"><h6>Ingles</h6></div></div>
                    <div class="well body">

                        <div class="control-group">
                            <label class="control-label">Título: <span class="text-error">*</span></label>
                            <div class="controls">
                                <input type="text" class="validate[required] span12" maxlength="80" name="titulo_en" value="<?= @$titulo_en; ?>" required/>
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">Descripción corta:</label>
                            <div class="controls">
                                <textarea rows="6" cols="5"  maxlength="1000" name="intro_en" class="span12" id="req" required ><?= @$intro_en ?></textarea>
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">Descripción:</label>
                            <div class="controls">
                                <textarea rows="25" cols="5"  maxlength="1600000" name="desc_en" class="span12" id="req" required><?= @$desc_en ?></textarea>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <!-- /grid widgets -->


        <div class="row-fluid">
            <div class="span6">
                <div class="widget">
                    <div class="navbar"><div class="navbar-inner"><h6>General</h6></div></div>
                    <div class="well body">
                        <div class="control-group">
                            <label class="control-label">URL de Odin<span class="text-error">*</span></label>
                            <div class="controls">
                                <input type="text" class="validate[required] span12" maxlength="800" name="iframe_url"  value="<?= @$iframe_url ?>" required/>
                            </div>
                        </div> 

                        <div class="control-group">
                            <label class="control-label">Imagen de la herramienta:</label>
                            <div class="controls">
                                <input type="file" name="imagen" class="styled" id="req">
                            </div>
                        </div>
                        <input type="hidden" name="id" value="<?= @$id; ?>">
                        <input type="hidden" name="url" value="<?= @$url; ?>">
                        <div class="form-actions align-right">
                            <input name="actualizar_herramienta" type="submit" class="btn btn-info" value="ACTUALIZAR HERRAMIENTA">
                        </div>

                    </div>
                </div>
            </div>
            <div class="span6">
                <div class="widget">
                    <div class="navbar"><div class="navbar-inner"><h6>Imagen de herramienta</h6></div></div>
                    <div class="well body">
                        <img src="<?= base_url().'assets/uploads/herramientas/'.$url ?>" alt="">
                    </div>
                </div>
            </div>
        </div>

        <?= form_close() ?>



    </div>
    <!-- /content wrapper -->

</div>
<!-- /content -->
